package com.run.merchant.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.run.common.annotation.Excel;
import com.run.common.core.domain.BaseEntity;

/**
 * 校园资讯信息对象 run_news_info
 * 
 * @author run
 * @date 2025-05-20
 */
public class RunNewsInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long newsId;

    /** 资讯标题 */
    @Excel(name = "资讯标题")
    private String title;

    /** 资讯内容 */
    @Excel(name = "资讯内容")
    private String content;

    /** 资讯封面 */
    @Excel(name = "资讯封面")
    private String cover;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date time;

    /** 作者名称 */
    @Excel(name = "作者名称")
    private String author;

    /** 浏览量(次) */
    @Excel(name = "浏览量(次)")
    private String views;

    public void setNewsId(Long newsId) 
    {
        this.newsId = newsId;
    }

    public Long getNewsId() 
    {
        return newsId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }

    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }

    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }

    public void setViews(String views) 
    {
        this.views = views;
    }

    public String getViews() 
    {
        return views;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("newsId", getNewsId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("cover", getCover())
            .append("time", getTime())
            .append("author", getAuthor())
            .append("views", getViews())
            .toString();
    }
}
